<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			body{
				counter-reset: d1 d2;
			}
			
			h2{
				counter-increment: d1 1;
			}
			
			h3{
				counter-increment: d2 1;
			}
			
			h2:before{
				content: counter(d1)"、";
			}
			
			.one:before{
				content: "1."counter(d2);
			}
			
			.two:before{
				content: "2."counter(d2);
			}
		</style>
	</head>
	<body>
		<h2>我喜欢的书</h2>
		<h3 class="one">西游记</h3>
		<h3 class="one">红楼梦</h3>
		<h3 class="one">水浒传</h3>
		<h3 class="one">三国演义</h3>
		<h2>我喜欢的动漫</h2>
		<h3 class="two">火影忍者</h3>
		<h3 class="two">工作细胞</h3>
		<h3 class="two">名侦探柯南</h3>
		<h3 class="two">动物狂欢曲</h3>
		
	</body>
</html>
